package com.eunion.web.cms.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 视频.
 */
@Entity
@Table(name = "t_mail_center")
@NamedQuery(name = "TMailCenter.findAll", query = "SELECT t FROM TMailCenter t")
public class TMailCenter {

	@Id
	private int id;

	private int userid;

	@Transient
	private String username;

	private String title;

	private int status;

	private Date createtime;

	private Date updatetime;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	@Override
	public String toString() {
		return "TMailCenter [id=" + id + ", userid=" + userid + ", title=" + title + ", status=" + status + ", createtime=" + createtime + "]";
	}

	public TMailCenter() {
		super();
	}

}
